import request from '@/utils/request'

export function listWeld(query) {
  return request({
    url: '/Weld/weld/list',
    method: 'get',
    params: query
  })
}


export function getWeld(id) {
  return request({
    url: '/Weld/weld/' + id,
    method: 'get'
  })
}

// 新增
export function addWeld(data) {
  return request({
    url: '/Weld/weld',
    method: 'post',
    data: data
  })
}

// 修改
export function updateWeld(data) {
  return request({
    url: '/Weld/weld',
    method: 'put',
    data: data
  })
}

// 删除
export function delWeld(id) {
  return request({
    url: '/Weld/weld/' + id,
    method: 'delete'
  })
}
